package com.hse.network;

import com.hse.virtualnetwork.VirtualCoordinator;
import com.hse.virtualnetwork.VirtualEndDevice;

/**
 * Created by IntelliJ IDEA.
 * User: Lexa
 * Date: May 31, 2009
 * Time: 8:16:25 PM
 * To change this template use File | Settings | File Templates.
 */
public class NetworkFactory {
    public static ICoordinator createCoordinator(String portName, long macAddress) throws InstantiationException {
        return new VirtualCoordinator();
        //return new Coordinator(portName, macAddress);
    }

    public static IEndDevice createEndDevice(String portName, long macAddress) throws InstantiationException {
        return new VirtualEndDevice();
        //return new EndDevice(portName, macAddress);
    }
}
